/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mongoosehome.web.login.service;

import com.mongoosehome.web.common.domain.TMemberRank;
import com.mongoosehome.web.login.dao.MemberRankDao;
import java.util.List;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

/**
 *
 * @author Administrator
 */
public class MemberRankServiceImpl extends HibernateDaoSupport implements MemberRankService{

    private MemberRankDao memberRankDao;
    /**
     * @param memberRankDao the memberRankDao to set
     */
    public void setMemberRankDao(MemberRankDao memberRankDao) {
        this.memberRankDao = memberRankDao;
    }
    
    @Override
    public void saveMemberRank(TMemberRank memberRank) {
        this.memberRankDao.saveMemberRank(memberRank);
    }

    @Override
    public List<TMemberRank> getAllMemberRanks() {
      return this.memberRankDao.getAllMemberRanks();
    }

    @Override
    public TMemberRank getMemberRankById(int id) {
       return this.memberRankDao.getMemberRankById(id);
    }
    
}
